<header class="header">
	<a class="btn btn_ht btn_z" href="#!/previous">
		<span class="z"></span><span class="y">返回</span>
	</a>
	<h2 class="title">
		<span class="toggle_select">
		<% if(title){ %>
			<%= title %>
		<% } else { %>
			最新发表
		<% } %>
		 <img src="./img/icon1.png" alt="arrow"></span>
	</h2>
	<div class="drop_down_select hide">
		<ul>
			<li data-order="newPosts">最新发表</li>
			<li data-order="lastReply">最后回复</li>
			<li data-order="digest">只看精华</li>
			<li data-order="recommend">只看推荐</li>
		</ul>
	</div>
</header>
	
<div class="wrapper" id="wrapper_bbs_list">
	<div class="bbs_list">
		<% _.each(items, function(item, index){ %>
		<a href="#!/bbs/item/<%= item.tid %>">
			<div class="left">
				<p class="avatar">
					<img src="<%= item.authoricon %>" alt="<%= item.author %>">	
				</p>
			</div>
			<div class="cnt">
				<p>
					<% if(item.digest == '1'){ %>
						<span class="status"><img src="./img/digest.png" alt="精华帖"></span>
					<% } %>
					<span class="title"> <%= item.subject %> </span>
					<img src="./img/pic.png" alt="pic">
				</p>
				<p>
					<span class="author"><%= item.author %></span>
				</p>
				<p class="extra">
					<span class="date"><%= item.dateline %></span>
					<span class="reply"><img src="./img/reply.png" alt=""> <%= item.replies %></span>
				</p>
			</div>
		</a>
		<% }) %>
	</div>
</div>

<footer class="footer hide">
	<div class="paging">
		<p class="item first"><img src="./img/first.png" alt="第一页"></p>
		<p class="item prev"><img src="./img/previous.png" alt="上一页"></p>
		<p class="item page"><input type="text" value="<%= page %> / <%= pages %>" class="page_num" readonly=true></p>
		<p class="item next"><img src="./img/next.png" alt="下一页"></p>
		<p class="item last"><img src="./img/last.png" alt="最后一页"></p>
	</div>
</footer>